import request from '@/utils/request';

export function getFlowerList(data) {
  return request({
    url: '/Flower/GetFlowerList',
    method: 'post',
    data
  });
}

export function getFlowerInfo(data) {
  return request({
    url: '/Flower/GetFlowerInfo?flowerID=' + data,
    method: 'get'
  });
}

export function saveFlowerInfo(data) {
  return request({
    url: '/Flower/SaveFlowerInfo',
    method: 'post',
    data
  });
}

export function setFlowerSate(data) {
  return request({
    url: '/Flower/setFlowerSate',
    method: 'post',
    data
  });
}